do not print missing fast path message when tolerance is very small
authorØyvind Kolås <pippin@gimp.org>
Wed, 15 Mar 2017 21:36:12 +0000 (22:36 +0100)
committerØyvind Kolås <pippin@gimp.org>
Wed, 15 Mar 2017 21:36:56 +0000 (22:36 +0100)
During the build of examples for GEGL when hashes are being cheched, the
BABL_TOLERANCE is set to 0.0 on purpose. Complaints about missing fast-paths
here are noise.

babl/babl-fish-path.c

index 4f169d0b51424283fb1487b120bccbea32c65091..77671ff8d499ae5f9c78dc6062de7fb6a2ca2077 100644 (file)
@@ -352,8 +352,12 @@ babl_fish_path (const Babl *source,
 #endif
       {
         static int warnings = 0;
+
+        if (_babl_legal_error() <= 0.0000000001)
+            return NULL;
+
         if (warnings++ == 0)
-          fprintf (stderr, 
+          fprintf (stderr,
 "Missing fast-path babl conversion detected, Implementing missing babl fast paths\n"
 "accelerates GEGL, GIMP and other software using babl, warnings are printed on\n"
 "first occurance of formats used where a conversion has to be synthesized\n"